#include "kernel/init.h"
#include "device/timer.h"
#include "interrupt/interrupt.h"
#include "memory/memory.h"
#include "lib/portio.h"
#include "lib/print.h"

void TestTimeInterrupt()
{
    // PutString_S("Here is Time Interrupt !!!\n");
    return ;
}
void TestKeyInterrupt()
{
    PutString_S("Here is Key Interrupt !!!\n");
    inb_C(0x60);
    return ;
}
void InitAll()
{
    // 内存
    InitMemory();
    // 中断
    InitGeneralHandler();
    RegisterIntrHandler(0x20, TestTimeInterrupt);
    RegisterIntrHandler(0x21, TestKeyInterrupt);
    InitIdt();
    EnableIntr();
    // 时钟
    InitTimer();
}